<?php
/**
 * @author		João Batista Neto
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
namespace rpo\http\exception;

use rpo\http\exception\interfaces\AbstractServerException;
use \Exception;

/**
 * The server does not support, or refuses to support, the HTTP protocol version that was used in the request message.
 * <p>
 * The server is indicating that it is unable or unwilling to complete the request using the same
 * major version as the client, as described in section 3.1, other than with this error message.
 * The response SHOULD contain an entity describing why that version is not supported and what other
 * protocols are supported by that server.</p>
 * @author		João Batista Neto
 * @final
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 * @see			BadRequestException
 * @see			InternalServerErrorException
 */
final class HttpVersionNotSupportedException extends AbstractServerException {
	/**
	 * Constroi o objeto da exceção
	 * @param string $message A exceção
	 * @param Exception $parent
	 */
	public function __construct( $message , Exception $previous = null ){
		parent::__construct( $message , 505 , $previous );
	}
}